

  @include('common.header')
    
  <div class="content col-xs-12 col-sm-10">
            <div class="banner">
              <p class="fl"><a href="/landowner">农户信息</a> >添加农户</p>
            </div>
          
            <div class="infoBox">
              <div class="info1">

  @if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
        <form action="{{ URL('landowner/store') }}" method="POST">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
          <table>
            
            <tr>
              <td>姓名</td>
              <td><input type="text" name="name" class="form-control" required="required"></td>
            </tr> 
     
            <tr>
              <td>身份证号</td>
              <td><input type="text" name="idcardNo" class="form-control" ></td>
            </tr> 
            <tr>
              <td>性别</td>
              <td><select name="sex" class="form-control"><option value="{{MALE}}">男</option><option value="{{FEMALE}}">女</option></select></td>
            </tr> 

            <tr>
              <td>民族</td>
              <td>
              <select name="nation" class="form-control"><option value="回">回</option><option value="汉">汉</option><option value="其他">其他</option></select>
            </tr> 
           <tr>
              <td>组别</td>
              <td><select name="team" class="form-control">
                @php
                $teams = json_decode(LAND_TEAM, true);
                @endphp
                @foreach ($teams as $team)
                <option value="{{$team}}">{{$team}}</option>;
                @endforeach 
            
              </select></td>
            </tr> 
            <tr>
              <td>地址</td>
              <td><input type="text" name="address" class="form-control" ></td>
            </tr> 

        
            <tr>
              <td>证件照</td>
              <td><input type="text" name="cardPic" class="form-control"></td>
            </tr> 

      <!--       <tr>
              <td>证件照（背面）</td>
              <td><input type="text" name="cardPic2" class="form-control" required="required"></td>
            </tr> 
   -->  <tr>
              <td colspan=2><input type="submit" value="增加" class="add"/></td>
            </tr> 

          </table>
                  </form> 
                 
              </div>

            </div>
          
        </div>
      </div>
    </div>

    @include('common.footer')
  
